package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Address;
import com.itheima.pojo.Setmeal;

import java.util.List;
import java.util.Map;

public interface AddressDao {

    Page<Address> findByCondition(String queryString);

    void add(Address address);

    Address findById(Integer id);

    void edit(Address address);

    Integer findCountByAddressId(Integer id);

    void deleteById(Integer id);

    List<Address> findAllAddress();

    //由地址值查到id
    Integer findIdByAddress(String addressDetails);

    //储存地址与订单关联表
    void save(Map<String, Integer> map1);
}
